Apparatus and method for adjusting filter frequency in relation to sampling frequency

ABSTRACT

A self-tuning filter is disclosed. The self-tuning filter includes a digital clocking signal and an input coupled to the digital clocking signal, whereby the input reads a value incident on the input when the digital clocking signal changes to a predetermined state. A clock-tunable filter is, furthermore, coupled to the digital clocking signal so that the frequency of the clock-tunable filter is adjusted in relation to a sampling frequency at which the digital clocking signal operates. The self-tuning filter may be applied to an input of a data acquisition unit and applied to an input having a variable sampling frequency. A method of controlling the frequency of a clock-tunable filter is also disclosed.

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority of copending U.S. Provisional Application No. 60/273,126, filed Mar. 3, 2001, which is incorporated by reference herein in its entirety.

STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH

[0002] Not applicable.

BACKGROUND OF THE INVENTION

[0003] 1. Field of the Invention

[0004] The disclosed invention relates to filter systems in general and, in particular, to a self-tuning filter for data acquisition.

[0005] 2. Description of the Background

[0006] It is known that the acquisition of data at high sampling rates, typically greater than 5000 samples per second, is a difficult process and that the sampled data is very prone to sampling error due to noisy signals. Such noise is an inherent problem in many applications such as in internal combustion engines. That noise can lead to what is called “aliasing” which is caused by interference of the noise frequency with the sampling frequency. An aliased signal is a false signal that results from a sampling rate that is less frequent than desirable. Where a sensed condition changes very rapidly, it may be difficult or impossible to sense the condition at a frequency that eliminates aliasing.

[0007] To resolve the aliasing problem in such circumstances, it is common to filter the signal by applying a low-pass filter to the signal between the sensing device and the data acquisition device. Such a low-pass filter may be setup as an “anti-aliasing” filter by setting a filter corner frequency of the anti-aliasing filter at half of the sampling frequency. Such filtering, however, introduces additional problems as the filtering process delays the signal causing a timing mismatch. To resolve the timing mismatch, it is preferable to have a programmable filter controlled by the data acquisition unit so that the data acquisition unit can control the level of filtering being applied and compensate for the timing mismatch associated with the corner frequency set at the anti-aliasing filter.

[0008] The approach of using a programmable anti-aliasing filter is complicated, however, if the sampling frequency changes with time, such as in the situation of degree-of-rotation based sampling of an engine operating characteristic during transient operation. In such a case, the filter frequency needs to change to match the changing sampling frequency to maintain measurement accuracy.

[0009] Thus, there is a need for an adjustable low-pass filter system that can follow a changing sampling frequency.

[0010] There is a further need for a digital frequency multiplier that has improved operating characteristics over a phase-lock loop.

[0011] Accordingly, the present invention provides solutions to the shortcomings of prior input filtering devices and frequency multiplying devices. Those of ordinary skill in the art will readily appreciate, therefore, that those and other details, features, and advantages will become further apparent in the following detailed description of the preferred embodiments.

SUMMARY OF THE INVENTION

[0012] The present invention is directed to a self-tuning filter. The self-tuning filter includes a digital clocking signal and an input coupled to the digital clocking signal, whereby the input reads a value incident on the input when the digital clocking signal changes to a predetermined state. A clock-tunable filter is, furthermore, coupled to the digital clocking signal so that the frequency of the clock-tunable filter is adjusted in relation to a sampling frequency at which the digital clocking signal operates. The self-tuning filter may be applied to an input of a data acquisition unit and applied to an input having a variable sampling frequency.

[0013] The present invention is also directed to a method of controlling the frequency of a clock-tunable filter. That method includes sensing a frequency at which a digital clocking signal changes state and adjusting a frequency of the clock-tunable filter in relationship to the frequency at which the digital clocking signal changes state. In that method, the digital clocking signal causes an input to read a value incident on the input when the digital clocking signal changes to a predetermined state. That method is particularly applicable to acquiring data having a varying sampling rate at a data acquisition unit.

[0014] Thus, the present invention provides a method, apparatus and system of accurately reading an input having a changing sampling frequency.

[0015] The present invention also provides a method, apparatus and system whereby a low-pass filter follows an input having a changing sampling frequency.

[0016] Furthermore, the present invention beneficially provides a digital frequency multiplier that has improved operating characteristics over a phase-lock loop.

[0017] Accordingly, the present invention provides solutions to the shortcomings of prior online auctions. Those of ordinary skill in the art will readily appreciate, therefore, that those and other details, features, and advantages will become further apparent in the following detailed description of the preferred embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, wherein like reference numerals are employed to designate like parts or steps, are included to provide a further understanding of the invention, are incorporated in and constitute a part of this specification, and illustrate embodiments of the invention that together with the description serve to explain the principles of the invention. In the drawings:

[0019]FIG. 1 is a schematic illustration of a clock-tunable filter of the present invention as applied to a data acquisition application;

[0020]FIG. 2 is a set of charts illustrating engine encoder and frequency matching circuitry output at various engine speeds in an embodiment of the present invention;

[0021]FIG. 3 is a chart illustrating a ratio of sampling frequency to filter corner frequency;

[0022]FIG. 4 is a chart illustrating sampling frequency and filter corner frequency associated with various engine speeds in the embodiment of FIG. 2;

[0023]FIG. 5 is a chart illustrating filtering delay time associated with various engine speeds in the embodiment of FIGS. 2 and 4;

[0024]FIG. 6 is a chart illustrating filter delay in samples associated with various engine speeds in the embodiments of FIGS. 2, 4 and 5; and

[0025]FIG. 7 is a schematic illustration of a digital frequency multiplier of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

[0026] It is to be understood that the figures and descriptions of the present invention included herein illustrate and describe elements that are of particular relevance to the present invention, while eliminating, for purposes of clarity, other elements found in typical data acquisition systems. Because the construction and implementation of such other elements are well known in the art, and because a discussion of them would not facilitate a better understanding of the present invention, a discussion of those elements is not provided herein. It is also to be understood that the embodiments of the present invention that are described herein are illustrative only and are not exhaustive of the manners of embodying the present invention. For example, it will be recognized by those skilled in the art that the present invention may be readily adapted to provide a high quality filtered signal in many applications other than internal combustion engine sensing applications.

[0027] The disclosed invention provides a method and apparatus for adjusting filter frequency as a function of sampling frequency. Initially, a method and apparatus for adjusting the frequency at which a low-pass filter operates in response to a changing sampling frequency is provided. The invention utilizes a “self-tuning filter” that comprises a clock-tunable filter and a frequency matching device.

[0028] The filter is placed intermediate a sensor and an input of a data acquisition unit to act upon a signal provided by the sensor by removing high frequency noise that may be incident on, for example, a conductor carrying the signal. Signals below the frequency threshold at which the filter is set, which include signals in the frequency range provided by the sensor in a properly designed system, are permitted to pass through the filter to the input.

[0029] In certain circumstances, a sampling rate utilized by a data acquisition system may vary. For example, in degree-based sampling of an operating engine, wherein it is desired to sense properties and/or operating conditions such as the position, speed, or acceleration of an engine shaft each time the shaft rotates a predetermined number of degrees, the sampling rate will vary with the speed of the engine. Thus, when the engine is operating in a transient mode (i.e., the engine is accelerating or decelerating), the sampling rate will also vary.

[0030] When acquiring data, for example in connection with an operating internal combustion engine, electromagnetic noise is typically generated by the engine and may interfere with signals as they are transferred from the engine to the data acquisition unit. A low-pass filter or anti-aliasing filter is often used to remove high frequency noise from the signal prior to reading the signal at an input of the data acquisition unit. When utilizing a low-pass filter to remove high frequency noise, it is desirable to set the filter frequency as a function of the sampling frequency. For example, a filter corner frequency setting that is half of the sampling frequency is an appropriate ratio in many applications. Such a filter frequency will delay the signal by an amount approximately equal to the time between two samples. Furthermore, because filters cause signal receipt at the input to be delayed and because the amount of that delay is dependent upon the filter frequency, it is beneficial for the data acquisition unit to be aware of the filter frequency. Thus, when sampling a signal at a varying rate, it would be beneficial to change the filter frequency to maintain filter frequency at a constant ratio of the sampling frequency. In that way, the data acquisition unit can calculate the filter frequency from the sampling frequency and calculate the signal delay from the filter frequency. Thus, the present invention utilizes a tunable low-pass filter and provides a frequency matching input to the filter that is based on a frequency matching device output. Of course, the frequency matching device may include phased-lock loop technology that multiplies a frequency signal to provide the desired filter corner frequency. The manipulated frequency matching signal may then be applied to the filter.

[0031] A sampling clock having a clock controlling a digital output is commonly employed to operate a multiplexed input board of a data acquisition unit. The clock will cause the digital output to pulse at a desired sampling frequency. The digital output is furthermore coupled to the input board to operate sample and hold circuits on the input board. In that manner, each pulse is used to trigger the input board to sample an input and hold the value sensed at that input in a buffer where the value may be accessed by a processor portion of the data acquisition unit. The sampling rate is furthermore communicated between the processor and the clock and may be varied by the processor. Thus, the sampling clock may be utilized as a frequency matching device.

[0032] In the following example, the sampling clock acts as the frequency matching filter control device by providing its output signal to the clock-tunable filter. With a suitable design, the filter unit will then follow the sampling frequency, set to a constant ratio of that frequency, which may be half of the sampling frequency.

[0033] Referring now to the drawings for the purpose of illustrating the preferred embodiments of the invention and not for the purpose of limiting the same, FIG. 1 illustrates a self-tuning filter 101 of the present invention applied to a data acquisition application 100. The self-tuning filter 101 includes a frequency matching circuit 106 and a clock-tunable filter 104.

[0034] As applied to the data acquisition application depicted in FIG. 1, the self-tuning filter 101 is coupled to an input signal 102 and a data acquisition device 112. The input signal 102 is coupled to a signal input terminal (Sig) 120 of the clock-tunable filter 104. A frequency matching circuit 106 provides a filter control signal 108 to the clock-tunable filter 104. The filter control signal 108 is coupled to an operating frequency terminal (Con) 122 of the clock-tunable filter 104. A filtered signal 110 is incident at an output terminal (Out) 124 of the clock-tunable filter 104. The filtered signal 110 is coupled to an input (not shown) of the data acquisition device 112. The filtered signal is read by the data acquisition device 112 and may serve any of a number of purposes including, for example, logging of the filtered signal or manipulation of output devices (not shown) in response to the filtered signal 110. A sampling frequency signal 114 is generated by the data acquisition device 112 in the present example and coupled to the frequency matching circuit 106.

[0035] The input signal 102 may be an analog signal emanating from a sensor (not shown) such as, for example, a speed sensor, an acceleration sensor, a pressure sensor, a temperature sensor, a flow sensor, a humidity sensor, or a shaft position sensor. The shaft position sensor may, for example, sense the position of a generator shaft or a cam shaft in an automotive application. The sensor may provide an input signal which may, for example, be a current, voltage, or resistance and which adjusts in relation to the sensed phenomenon. Thus, if the sensor is a flow sensor sensing the flow of fuel into a cylinder of an engine, for example, a 1 V signal may be provided from the sensor at a flow rate of 10 milliliters per minute and a 5 V signal may be provided at a flow rate of 100 milliliters per minute or signals between 10 and 100 milliliters per minute may be proportionate between 4 and 20 mA. The input signal may be coupled from the sensor to the clock-tunable filter 104 by, for example, copper conductors.

[0036] The sampling frequency signal 114 may be provided by any digital signal operating at the sampling frequency. Thus, the sampling frequency signal 114 may be internally clocked from within the data acquisition device 112 or externally clocked from a device external to a data acquisition device 112. An example of a sampling frequency signal that is externally clocked is an engine encoder 124 that provides a change of state each time an engine shaft 126 rotates a predetermined number of degrees. The signal from such an engine encoder 124 may be utilized to trigger data sampling as well as providing an input to the self-tuning filter of the present invention.

[0037] An example of an internally clocked sampling frequency signal is a signal produced by a sampling clock (not shown) internal to a data acquisition device 112. The sampling clock, in such a case, provides a digital output that controls the sampling rate of the data acquisition device 112. The digital output of such a sampling clock changes state at the sampling rate and each input controlled by the digital output is sampled when the digital output changes to a predetermined state, such as a high value. Thus, a sensed value may be incident at the input continuously and the input may read the sensed value each time the digital output of either an internally or externally clocked device changes to the predetermined state. The value read at the input may then be placed in a buffer where it may be accessed by the data acquisition device 112. Each time the predetermined state is achieved, the input may read the new value incident at the input and place that updated value in the buffer.

[0038] The digital output of the sampling clock is also used, in the present example, to provide the sampling frequency signal 114 to the frequency matching circuit 106. The frequency matching circuit 106 matches the sampling frequency to the clocking frequency required by the clock-tunable filter 104. That matching is accomplished by multiplying the frequency of the sampling frequency signal 114 by a factor. That factor is furthermore established by reference to the operating characteristics of the particular clock-tunable filter 104 utilized. The frequency matching circuit 106 in one embodiment of the present example includes a phase-lock loop, which multiplies the sampling frequency signal 114 and provides a filter control signal 108 to the operating frequency terminal (Con) 122. Thus, the frequency provided to the operating frequency terminal (Con) 122 is proportionate to the sampling frequency of the data acquisition device 112.

[0039]FIG. 2 is a set of charts 270 illustrating engine encoder output 274 and frequency matching circuitry output 276 at various engine speeds in an embodiment of the present invention. The engine speed chart 272 illustrates an engine accelerating from 1000 rpm to 9000 rpm over a ten second period.

[0040] The engine encoder pulse train chart 274 illustrates a typical engine encoder pulse train corresponding to the two second point of the engine speed chart, an engine encoder pulse train corresponding to the four second point of the engine speed chart, and an engine encoder pulse train corresponding to the six second point of the engine speed chart. The engine encoder pulse train corresponding to the two second point is depicted at 278, the engine encoder pulse train corresponding to the four second point is depicted at 280, and the engine encoder pulse train corresponding to the six second point is depicted at 282, and those depictions are not illustrated to scale. One form of the engine encoder 124, which is utilized in the present example, provides a pulse for every degree of engine rotation. Other engine encoders 124 may provide, for example, a pulse for every half degree of rotation or a pulse for every tenth of a degree of rotation. Thus, in the present example wherein the engine encoder 124 provides a single pulse for every degree of rotation, a total of 360 pulses are output by the engine encoder 124 for every rotation of the engine. Engine encoder pulse train output may be calculated from engine speed such that the pulse train output for any given engine speed may be determined. Engine speed in rpm may, therefore, be divided by 60 seconds per minute to arrive at engine speed per second. Engine speed per second may then be multiplied by the number of encoder pulses per revolution (in this example, 360 pulses per rotation) to arrive at the engine encoder pulse train in cycles per second or hertz. Engine encoder pulse train for an engine encoder providing a pulse for every one degree of rotation is equal to 360/60 or six times engine speed in rpm.

[0041] Utilizing that equation, engine encoder pulse train output at the two second mark on the engine speed chart 272, when the engine is operating at 1500 rpm, is equal to 9000 Hz. Engine encoder pulse train at the four second mark on the engine speed chart 272, when the engine is operating at 6000 rpm, is equal to 36,000 Hz, and engine encoder pulse train at the six second mark on the engine speed chart 272, when the engine is operating at 8500 rpm, is equal to 51,000 Hz.

[0042] The frequency matching circuitry pulse train chart 276 illustrates a pulse train output of one embodiment of the frequency matching circuitry corresponding to the two second point of the engine speed chart, a pulse train output corresponding to the four second point of the engine speed chart, and a pulse train output corresponding to the six second point of the engine speed chart. The two second frequency matching circuitry pulse train is depicted at 284, the four second frequency matching circuitry pulse train is depicted at 286, and the six second frequency matching circuitry pulse train is depicted at 288, and those depictions are not illustrated to scale. A form of frequency matching circuitry 106 utilized in the present example, provides 56 pulses for every engine encoder pulse or a frequency of 56 times that of the engine encoder. Other multipliers may also be used through the frequency matching circuitry as desired. For example, various multipliers may be employed to match the filter or other hardware utilized. Thus, in the present example wherein the frequency matching circuitry 106 provides 56 pulses for every engine encoder pulse, at the two second point when the engine encoder pulse train is 9000 Hz or 9 kHz, the pulse train output by the frequency matching circuitry 106 is 56 times 9 kHz, or 504 kHz. At the four second point, when the engine encoder pulse train is 36 kHz, the pulse train output by the frequency matching circuitry 106 is 56 times 36 kHz, or 2016 kHz, and at the six second point, when the engine encoder pulse train is 51 kHz, the pulse train output by the frequency matching circuitry 106 is 56 times 51 kHz, or 2856 kHz.

[0043] The present invention provides a corner frequency of approximately one-half the sampling frequency and provides a constant delay between receipt of a signal at the filter and output of the filtered signal from the filter to the data acquisition device of approximately one sample. In the following embodiment, the clock-tunable filter 104 is selected to have a clock to cut-off frequency ratio of 100. The clock-tunable filter 104 also has a group delay of 0.028 ms at a corner frequency of 20 kHz. Moreover, the ratio of group delay to corner frequency is constant such that group delay may be calculated for any corner frequency.

[0044]FIG. 3 is a chart 250 that illustrates the constancy of frequency ratios with time to maintain the ratio of sampling frequency to filter corner frequency at a constant of near two, thereby achieving a filter corner frequency that is equal to approximately half the sampling frequency across the range of sampling frequencies experienced. In the embodiment illustrated, the ratio of filter control signal frequency to filter corner frequency is 100, as shown at 252. Filter control signal frequency is 100 times the filter corner frequency because filter control signal frequency is input into the clock-tunable filter 104 and is, therefore, divided by the clock to cut-off frequency ratio of 100 to arrive at the corner frequency. The ratio of filter control signal frequency to sampling frequency is 56, as shown at 254. The ratio of filter control signal frequency to sampling frequency is accomplished because the frequency matching circuit 106 multiplies the sampling frequency 114 by 56 and outputs that frequency as the filter control signal 108. The ratio of sampling frequency to filter corner frequency is, therefore, equal to the ratio of filter control signal frequency to filter corner frequency divided by the ratio of filter control signal frequency to sampling frequency. Thus, in the present embodiment, the ratio of sampling frequency to filter corner frequency is 100 divided by 56, or 1.79, as shown at 256.

[0045] Clock-tunable filters 104 are available having clock to cut-off frequency ratios of values other than 100, including for example 50. Such clock-tunable filter 104 may be utilized with various frequency matching circuits to create other filter control circuits having a frequency that is approximately half the cut-off frequency ratio.

[0046] Thus, for example, with an engine speed of 6000 rpm with an encoder causing the data acquisition device to sample once for every degree of engine rotation, the sampling frequency is 6000 rpm times 360 sampler/rotation divided by 60 sec/min=36 kHz. Utilizing frequency matching circuitry that provides 56 filter control signal pulses per sample, the ratio of filter control signal frequency to sampling frequency is fifty-six to one. The frequency of the filter control signal 108, at a sampling frequency of 36 kHz, is 36 kHz times 56, or 2016 kHz.

[0047] The filter delay or group delay is the time that a signal is delayed in getting to the data acquisition device due to the filter. A desirable filter delay value is one sampling cycle.

[0048] The clock-tunable filter selected for the present embodiment is a commercially available model LTC 1066-1, manufactured by Linear Technology of Milpitas California. That filter has a filter delay of 0.028 ms at 20 kHz. A filter having a filter delay of 0.028 ms at 20 kHz does not provide a perfect half cycle corner frequency but that commercially available component gives close to the desired half cycle corner frequency. A perfect half cycle corner frequency, in the present configuration would require a filter having a filter delay of 0.025 ms at 20 kHz,.

[0049] The selected clock-tunable filter does, however, provide the desired one sample delay at all desired frequencies. Thus, at a corner frequency of 20 kHz, the sampling frequency would be equal to the control signal frequency of 20 kHz divided by the frequency matching circuit multiplier of 56 times the clock to cut-off frequency ratio of 100, or 35.7 kHz. The 35.7 kHz sampling frequency occurs at an engine speed of 5,950 rpm (35.7 kHz times 360 pulses per rotation divided by 60 sec/min). Moreover, the time between samples is equal to 1/35.7 kHz, or 0.028 ms. Thus, as desired, the filter delay of 0.028 ms is equal to the time between samples and the invention achieves the desired one sample delay time. Furthermore, the sample delay time holds true for all engine speeds.

[0050] Thus, at 1500 rpm with a sampling rate of 9 kHz, the ideal filter delay of one divided by nine thousand or 0.111 ms is achieved. Similarly, the ideal filter delay at 9000 rpm of one divided by fifty-one thousand, or 0.0198 ms and at 6000 rpm the ideal filter delay of one divided by thirty-six thousand, or 0.0277 is achieved.

[0051] The 35.7 kHz sampling frequency is equal to 1.79 times the corner frequency of 20 kHz. Therefore, the desired ratio of sampling frequency to filter corner frequency of approximately two is also achieved. The proportionality of sampling frequency to filter corner frequency across engine speeds of 1000 rpm to 9000 rpm is illustrated in FIG. 4. The sampling and filter frequency proportionality chart 300 of FIG. 4 depicts frequency in Hz on a vertical axis 304, engine speed in rpm on a horizontal axis 302, sampling frequency at various engine speeds 306 and filter corner frequency at various speeds 308.

[0052]FIG. 5 illustrates a group or filter delay of the clock-tunable filter at various engine speeds in this embodiment. The group or filter delay is depicted at 326 on group delay chart 320 having a vertical axis 324 demarked in milliseconds of delay time and a horizontal axis 322 demarked in engine speed rpm.

[0053]FIG. 6 is a chart 340 illustrating that the delay time in a sample reaching the data acquisition device 112 due to the self-tuning filter 101 is equal to one sample at all engine speeds. The group delay due to the self-tuning filter 101 is illustrated by line 342 and is equal to one sample of delay, demarked on the vertical axis 344 at various engine speeds demarked on the horizontal axis 346. Thus, another goal of achieving a constant filter delay in a system having a variable sampling rate is also achieved.

[0054]FIG. 7 illustrates a digital frequency multiplier 150 included in the frequency matching circuit 106 in another embodiment of the present invention. It will be noted that the digital frequency multiplier described hereinbefore multiplied the sampling frequency by fifty-six while the digital frequency multiplier 150 described in connection with FIG. 7 multiplies the sampling frequency by 10. These and other multipliers may be used with various embodiments of the present invention.

[0055] In operation with the sampling frequency signal 114 operating for the duration of the current example at 1000 Hz, a first counter register 160 will count low to high transitions on the oscillator clocking signal 154, which is operating at 1 MHz. A second counter register 172 will count low to high transitions on a scaled oscillator signal 166, which is operating at 100 kHz until the second counter register 172 is reset by a low to high transition of the sampling frequency signal 114. In the present example, the compare register 180 will have a value of 100 at its input terminal (in1) 178. That value of 100 is equal to the number of low to high transitions received at a clock terminal (clk) 170 of the second counter register 172 between individual low to high transitions of the sampling frequency signal 114, i.e., 100 kHz divided by 1000 Hz, or a count of 100. The compare register 180 will furthermore transition its output from low to high each time the count received from the first counter register 160 at its input (in2) 186 reaches a value equal to the value at its other input (in1) 178. Thus, the compare register output (out) 192 will transition each time the count at input (in2) 186 reaches 100 in the present example. Because the frequency of the signal 154 provided to the clock terminal (clk) 158 of the first counter register 160 is ten times greater than the frequency of the signal 166 provided to the clock terminal (clk) 170 of the second counter register 172, a compare register output (out) 192 will transition ten times for each transition of the sampling frequency signal 114. When the compare register output (out) 192 transitions, the output signal 194 of the compare register 180 will reset the first counter register 160 and trigger a toggle register 200. The toggle register 200 then provides a filter control signal 108 that operates at a frequency ten times greater than that of the sampling frequency signal 114. It will be recognized that the filter control signal 108 provided to the clock-tunable filter 104 may be set to operate at a frequency that may be any desired multiple of the sampling frequency signal 114 by selecting a frequency divider 164 that divides the oscillator clocking signal 154 by the desired multiple.

[0056] The embodiments of the invention lend several important features to the design of a filter for a signal having a changing sampling rate: (i) the filter frequency may always be set in direct proportion to the sampling frequency; (ii) the signal delay may always be set to a fixed number of samples, and can be arranged to be a single sample point delay if the filter frequency is set at an appropriate value; and (iii) the system is capable of following any sampling rate set by the system without external intervention.

[0057] The present invention produces a very adaptable anti-aliasing filter system for high-speed data acquisition where there is little or no communication with the host computer and yet the filter is always set to the most suitable condition. The application of this idea may be universally applied to any data acquisition application in which an anti-aliasing hardware filter is required or desired to ensure accurate logging of data and subsequent software filtering.

[0058] While the invention has been described in detail and with reference to specific embodiments thereof, it will be apparent to one skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope thereof. In particular, it should be noted that the present invention provides a filter having a frequency that will adjust to any sampling signal including signal operating at a constant sampling rate and a signal operating at a variable sampling rate. Thus, the present invention also beneficially provides a filter that may be used in a constant sampling application without requiring manual set-up by an operator. Thus, it is intended that the present invention cover modifications and variations of this invention provided that they come within the scope of the appended claims and their equivalents. 

What is claimed is:
 1. In a data acquisition unit, a self-tuning filter, comprising: a digital clocking signal; an input coupled to said digital clocking signal, whereby the input reads a value incident on the input when the digital clocking signal changes to a predetermined state; and a clock-tunable filter coupled to said digital clocking signal, whereby the frequency of the clock-tunable filter is adjusted in relation to a sampling frequency at which the digital clocking signal operates.
 2. The self-tuning filter of claim 1, wherein the clock-tunable filter is a low-pass filter.
 3. The self-tuning filter of claim 1, further comprising a frequency multiplier coupled to said digital clocking signal and said clock tunable filter, whereby the frequency of the clock tunable filter is a multiple of the sampling frequency.
 4. The self-tuning filter of claim 3, wherein the frequency multiplier is a phase-lock loop.
 5. The self-tuning filter of claim 1, wherein the input is an input of the data acquisition device.
 6. The self-tuning filter of claim 1, wherein the sampling frequency at which the digital clocking signal operates is equal to the frequency at which the digital clocking signal changes to the predetermined state.
 7. The self-tuning filter of claim 1, wherein the value incident on the input is a signal originating at a sensor.
 8. The self-tuning filter of claim 7, wherein the sensor is a pressure sensor.
 9. The self-tuning filter of claim 1, wherein the sampling frequency varies.
 10. The self-tuning filter of claim 9, wherein the sampling frequency varies as a function of a degree of rotation of a shaft.
 11. In a data acquisition unit, a self-tuning filter, comprising: a digital clocking signal; an input coupled to said digital clocking signal, whereby the input reads a value incident on the input when the digital clocking signal changes to a predetermined state and the digital clocking signal changes to the predetermined state at a varying rate; a phase-lock loop coupled to said digital clocking signal; and a clock-tunable filter coupled to said phase-lock loop, whereby the frequency of the clock tunable filter is a multiple of the sampling frequency at which the digital clocking signal changes to the predetermined state.
 12. A method of controlling the frequency of a clock-tunable filter, comprising: sensing a frequency at which a digital clocking signal changes state, whereby said digital clocking signal causes an input to read a value incident on the input when the digital clocking signal changes to a predetermined state; adjusting a frequency of a clock-tunable filter in relationship to the frequency at which the digital clocking signal changes state.
 13. The method of claim 12, further comprising: multiplying the frequency of the digital clocking signal to acquire a desired filter frequency; and wherein said adjusting includes adjusting the frequency of the clock-tunable filter to equal the desired filter frequency.
 14. The method of claim 12, wherein the digital clocking signal changes state at a varying rate. 